﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace App.Model.MiddlewareModel
{
    [Serializable]
    [DataObject]
    public partial class RequestRecord
    {
        #region 属性
        ///<summary></summary>
        [Fieldndex("PrimaryKey")]
        [ColumnProperty(36, "varchar", "")]
        public long ID { get; set; }
        ///<summary></summary>
        [ColumnProperty(17, "varchar", "")]
        public String IP { get; set; }
        ///<summary>Get参数</summary>
        [ColumnProperty(1000, "varchar", "Get参数")]
        public String RequestGetMsg { get; set; }
        ///<summary>Post参数</summary>
        [ColumnProperty(6000, "varchar", "Post参数")]
        public String RequestPostMsg { get; set; }
        ///<summary>访问时间</summary>
        [ColumnProperty(36, "varchar", "访问时间")]
        public String VisitDateTime { get; set; }
        ///<summary>访问路径</summary>
        [ColumnProperty(500, "varchar", "访问路径")]
        public String VisitUrl { get; set; }
        ///<summary></summary>
        [ColumnProperty(100, "varchar", "")]
        public String LoginId { get; set; }
        ///<summary>访问令牌登录成功后生成</summary>
        [ColumnProperty(1000, "varchar", "访问令牌登录成功后生成")]
        public String RequestKey { get; set; }
        ///<summary>Header信息</summary>
        [ColumnProperty(6000, "varchar", "Header信息")]
        public String RequestHeaderMsg { get; set; }
        ///<summary></summary>
        [ColumnProperty(4, "varchar", "")]
        public String MethodType { get; set; }
        ///<summary>响应信息</summary>
        [ColumnProperty(8000, "varchar", "响应信息")]
        public String ResponseContent { get; set; }
        ///<summary>post请求body数据</summary>
        [ColumnProperty(8000, "varchar", "post请求body数据")]
        public String RequestBody { get; set; }
        ///<summary>响应状态码</summary>
        [ColumnProperty(10, "int", "响应状态码")]
        public Int32? ReponseStatusCode { get; set; }
        ///<summary>从请求到响应耗时</summary>
        [ColumnProperty(10, "int", "从请求到响应耗时")]
        public Int32? ConsumingTime { get; set; }
        #endregion
    }
}
